package com.gitee.aurora.server.service.impl;

import com.gitee.aurora.core.utils.ResultVO;
import com.gitee.aurora.server.dao.PtcjConfigDao;
import com.gitee.aurora.server.service.PtcjConfigService;
import com.gitee.aurora.server.vo.PtcjConfig;
import com.gitee.aurora.utils.PageParam;
import com.gitee.aurora.utils.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PtcjConfigServiceImpl implements PtcjConfigService {
    @Autowired
    private PtcjConfigDao ptcjConfigDao;
    @Override
    public Pagination queryPtjc(PtcjConfig ptcjConfig, PageParam pageParam) {
        return ptcjConfigDao.queryPtjc(ptcjConfig,pageParam);
    }

    @Override
    public ResultVO updataPtcj(PtcjConfig ptcjConfig) {
        return ptcjConfigDao.updataPtcj(ptcjConfig);
    }

    @Override
    public ResultVO addPtcj(PtcjConfig ptcjConfig) {
        return ptcjConfigDao.addPtcj(ptcjConfig);
    }

    @Override
    public ResultVO deletePtcj(List<PtcjConfig> ptcjConfig) {
        return ptcjConfigDao.deletePtcj(ptcjConfig);
    }
}
